package com.ssh.dao.Impl;

import org.springframework.orm.hibernate5.HibernateTemplate;
import org.springframework.orm.hibernate5.support.HibernateDaoSupport;

import com.ssh.bean.User;
import com.ssh.dao.UserDao;

public class UserDaoImpl extends HibernateDaoSupport implements UserDao {

	@Override
	public User getUserbyId(int userId) {
		System.out.println();
		return getHibernateTemplate().get(User.class, userId);
	}

	@Override
	public void save(User user) {
		getHibernateTemplate().save(user);
	}

}
